package cn.learn.proto;

import cn.learn.server.Record;
import cn.learn.server.jute.InputArchive;
import cn.learn.server.jute.OutputArchive;

import java.io.IOException;

public class RequestHeader implements Record {
    private int xid;
    private int type;
    @Override
    public void serialize(OutputArchive outputArchive, String tag) throws IOException {

    }

    @Override
    public void deserialize(InputArchive a_, String tag) throws IOException {
        a_.startRecord(tag);
        xid=a_.readInt("xid");
        type=a_.readInt("type");
        a_.endRecord(tag);
    }

    public int getXid() {
        return xid;
    }

    public int getType() {
        return type;
    }
}
